package com.naiterui.ehp.bs.cms.modules.wms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.wms.entity.Sku;
import com.naiterui.ehp.bs.cms.modules.wms.vo.MedicineDefaultUsageVO;

/**
 * 药品默认用法用量和安全用量
 * 
 * @author yangfuya
 * @since 2021/11/10
 */
@DS(DsName.EHP)
public interface MedicineDefaultUsageMapper extends BaseMapper<Sku> {

    /**
     * 分页列表
     * 
     * @param page
     * @param entityWrapper
     * @return
     */
    IPage<MedicineDefaultUsageVO> getPage(@Param("page") IPage<MedicineDefaultUsageVO> page,
        @Param("ew") QueryWrapper<MedicineDefaultUsageVO> entityWrapper);

    /**
     * 获取详情
     * 
     * @param id
     * @return
     */
    MedicineDefaultUsageVO getById(Long id);

    /**
     * 获取所有的skuId
     * 
     * @return
     */
    List<Long> getSkuIdAll();
}
